Skip to content

Add pre-commit checks#79

Merged
nosborn merged 1 commit intomasterfrom
pre-commit-branch-protection
Jun 12, 2025
Merged

Add pre-commit checks#79
nosborn merged 1 commit intomasterfrom
pre-commit-branch-protection

Conversation

@nosborn
Copy link
Copy Markdown
Owner

@nosborn nosborn commented Jun 12, 2025

No description provided.

Copilot AI review requested due to automatic review settings June 12, 2025 02:41
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR introduces additional pre-commit checks to improve code quality and enforce repository policies. Key changes include:

  • Addition of new hooks for JSON validation (check-json), branch commit restrictions (no-commit-to-branch), and JSON formatting (pretty-format-json with autofix).
  • Renaming the submodule check from forbid-new-submodules to forbid-submodules.
Comments suppressed due to low confidence (1)

.pre-commit-config.yaml:9

  • The indentation for the added hook 'check-json' appears inconsistent with its sibling entries. Please adjust the indentation to match the existing hooks for better readability and to avoid potential YAML parsing issues.
      - id: check-json

@nosborn nosborn merged commit 8bdebaf into master Jun 12, 2025
4 checks passed
@nosborn nosborn deleted the pre-commit-branch-protection branch June 12, 2025 02:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants